import request from '@/utils/request'

// 查询档案入库任务列表
export function listStorageTask(query) {
  return request({
    url: '/archive/storageTask/list',
    method: 'get',
    params: query
  })
}

// 查询档案入库任务详细
export function getStorageTask(taskId) {
  return request({
    url: '/archive/storageTask/' + taskId,
    method: 'get'
  })
}

// 新增档案入库任务
export function addStorageTask(data) {
  return request({
    url: '/archive/storageTask',
    method: 'post',
    data: data
  })
}

// 修改档案入库任务
export function updateStorageTask(data) {
  return request({
    url: '/archive/storageTask',
    method: 'put',
    data: data
  })
}

// 删除档案入库任务
export function delStorageTask(taskId) {
  return request({
    url: '/archive/storageTask/' + taskId,
    method: 'delete'
  })
}
export function selectArchiveStorageBoxByTaskId(taskBoxId) {
  return request({
    url: '/archive/storageBox/selectArchiveStorageBoxByTaskId/' + taskBoxId,
    method: 'get'
  })
}
export function selectArchiveStorageByTaskBoxId(taskId) {
  return request({
    url: '/archive/storage/selectArchiveStorageByTaskBoxId/' + taskId,
    method: 'get'
  })
}

export function archiveStorageTaskResultReport(data) {
  return request({
    url: '/archive/storageTask/archiveStorageTaskResultReport',
    method: 'post',
	data: data
  })
}

export function selectArchiveStorageByTaskId(taskId) {
  return request({
    url: '/archive/storageTask/selectArchiveStorageByTaskId/' + taskId,
    method: 'get'
  })
}